inst/extdata/MSCR596_-_Advanced_Data_Management_in_R/05 Functions/scripts/add2sub5.R

# look at the function, but don't edit it
# when you are done, type submit() in
# the console below

add2sub5 <- function(x) {
  x <- x + 2  #  here we take x and add two to it, don't forget to assign it somewhere!
              #  (x is best since we want to keep it)
  x - 5       #  here we subtract 5 and since this is the last line it will be returned
}
bbbruce/admswirl documentation built on Sept. 4, 2023, 4:16 a.m.